package com.mali.malibackendproduct.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mali.malibackendmodel.dto.BuyWayDTO;
import com.mali.malibackendmodel.dto.SellProductDTO;
import com.mali.malibackendmodel.dto.TopProductsDTO;
import com.mali.malibackendmodel.pojo.Orders;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

/**
* @author 132993
* @description 针对表【orders(订单)】的数据库操作Mapper
* @createDate 2024-06-16 10:20:11
* @Entity com.mali.malibackendmodel.pojo.Orders
*/
@Mapper
public interface OrdersMapper extends BaseMapper<Orders> {

    List<SellProductDTO> selectProductExchange(@Param("beginTime") LocalDate beginTime,
                                               @Param("endTime") LocalDate endTime);

    List<TopProductsDTO> selectTopProducts(@Param("beginTime") LocalDate beginTime, @Param("endTime") LocalDate endTime);

    List<BuyWayDTO> selectBuyWay(@Param("beginTime") LocalDate beginTime, @Param("endTime") LocalDate endTime);
}




